package xyz.wpxy.wxpushmsg.constant;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @Description: 微信推送 常量池
 * @author: Peng Wei
 * @date:2023/8/7 16:06
 */
@Data
@Component
public class WxMsgConstant {

    /**
     * HTTP超时连接设置*
     */
    public static final Integer CONNECT_TIMEOUT = 5000;
    public static final Integer CONNECTION_REQUEST_TIMEOUT = 1000;
    public static final Integer SOCKET_TIMEOUT = 5000;

    /**
     * 微信推送的类型选择*
     */
    //文本:
    public static final String TYPE_TEXT = "text";
    //卡片文本:
    public static final String TYPE_TEXT_CARD = "textcard";

    /**
     * token过期时效 7200 2小时过期时效（提前十秒过期）
     */
    public static final Long EXPIRY_TIME = 7190L * 1000;
}
